﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace S_Wings {
  class Ship {
    private Texture2D sprite;
    public Vector2 loc, size, vel;
    public double health;
    public float angle;
    public bool alive;
    public Wing weapon;

    public void update(double elapsedTime) {
      // movement and firing
    }

    public void draw(SpriteBatch sb) {
      sb.Begin(SpriteSortMode.FrontToBack, BlendState.AlphaBlend);
        // Draw the ship
        sb.Draw(sprite, loc, new Rectangle(0, 0, (int)size.X, (int)size.Y), Color.White, angle, Vector2.Zero, new Vector2(1.0f), SpriteEffects.None, 0.5f);
        // Draw the wing
        weapon.draw(sb);
    }
  }
}
